import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import uView from "uview-ui";
Vue.use(uView);
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
import kevy-empty from '@uni_modules/kevy-empty'
Vue.use(kevy-empty)


// 高德地图的JSAPI
Vue.config.productionTip = false;

// 配置高德地图API Key
Vue.prototype.$AMAP_KEY = '66c6686b27ee69917f31018f48c79ccf';

import api from './utils/api.js'
Vue.prototype.api = api

import setupRouteInterceptors from 'utils/routeInterceptor/routeInterceptor.js';
setupRouteInterceptors();

import yfx-tooltip from '@uni_modules/yfx-tooltip'; // 引入 tooltip-box 组件

Vue.use(yfx-tooltip); // 注册组件

// #endif